import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
	plugins: [vue()],
	server: {
		//设置域名
		host: '127.0.0.1',
		port: 8080,
		// 配置代理跨域
		proxy: {
			'/apis': {
				target: 'https://www.dance365.com',
				changeOrigin: true,
				// rewrite: (path) => path.replace(/^\/api/, '')
			},
		},
	},
})
